package com.fly.service.Impl;

import com.fly.bean.Fix;
import com.fly.bean.SystemPropertiesValue;
import com.fly.bean.Users;
import com.fly.mapper.FixTaskMapper;
import com.fly.service.FixTaskService;
import com.fly.util.Page;
import com.fly.vo.TaskPageFind_WH;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FixTaskServiceImpl implements FixTaskService {

    @Resource
    FixTaskMapper fixTaskMapper;

    @Override
    public int selectFixCountByPage(TaskPageFind_WH taskPageFind_wh) {
        return fixTaskMapper.selectFixCountByPage(taskPageFind_wh);
    }

    @Override
    public int selectFixCountByFind(TaskPageFind_WH taskPageFind_wh) {
        return fixTaskMapper.selectFixCountByFind(taskPageFind_wh);
    }

    @Override
    public List<Fix> selectFixByPage(TaskPageFind_WH taskPageFind_wh) {
        return fixTaskMapper.selectFixByPage(taskPageFind_wh);
    }

    @Override
    public List<SystemPropertiesValue> selectAllFixState() {
        return fixTaskMapper.selectAllFixState();
    }

    @Override
    public List<Fix> selectFixByFind(TaskPageFind_WH taskPageFind_wh) {
        List<Fix> fixs = fixTaskMapper.selectFixByFind(taskPageFind_wh);

        return fixs;
    }

    @Override
    public Fix selectFixByFixId(int fixId) {
        Fix fix = fixTaskMapper.selectFixByFixId(fixId);
        return fix;
    }

    @Override
    public Users selectUserByUserId(int userId) {
        return fixTaskMapper.selectUserByUserId(userId);
    }

    @Override
    public List<Users> selectUserByTaskId(int taskId) {
        return fixTaskMapper.selectUserByTaskId(taskId);
    }

    @Override
    public int selectUserByFixId(int fixId) {
        return fixTaskMapper.selectUserByFixId(fixId);
    }

    @Override
    public int selectUserRoleByUserId(int userId) {
        return fixTaskMapper.selectUserRoleByUserId(userId);
    }


}
